package com.itWaVel.feign.client;

import com.Emplyment.result.Result;
import com.Emplyment.vo.PayResultVo;
import com.Emplyment.vo.ResumeTemplateVo;
import com.itWaVel.feign.client.fallback.TemplateClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "emplyment-client", fallback = TemplateClientFallback.class)
public interface TemplateClient {

    @GetMapping("/template/getResumeTemplate")
    Result<List<ResumeTemplateVo>> getResumeTemplate();

    @PostMapping("/menbercenter/paySuccess")
    Result paySuccess(@RequestBody PayResultVo payResultVo);

}
